<!DOCTYPE html>
{% autoescape true %}
<html>
  	<head>
		<style>
			tr.failure 	{ background-color: red; } 
			tr.succes 	{ background-color: green; } 
		</style>
	</head>
  	<body>
		<table>
		{% for check in checkings %}


			{% if check[2] %}
				

				{% if check[2][0][1] == True  %}
					<tr class='succes'>
				{% else %}
					<tr class='failure'>			
				{% endif %}
			{% else %}
					<tr class='succes'>
			{% endif %}				
				<td><a href="{{ check[1].url }}">{{ check[1].url }}</a></td>	
				<td>{{ check[1].regex }}</td>	
				<td>{{ check[1].resultCode }}</td>	
			{% if check[2] %}
				<td>{{ check[2][0][0] }}</td>	
			{% else %}
				<td>N/A</td>
			{% endif %}
				<td><a href="/details/{{ check[0] }}">More details</a></td>


			</tr>




		{% endfor %}
		</table>
	</body>
</html>
{% endautoescape %}



  
